package com.cloud.model.entity.assets;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.cloud.model.entity.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.io.Serializable;

/**
 * <b><code>Assets</code></b>
 * <p/>
 * Assets的具体实现
 * <p/>
 * <b>Creation Time:</b> 2019-10-15 17:21:44.
 *
 * @author ${model.author}
 * @version 1.0.0
 * @since cloud-spring-boot-be 1.0.0
 */
@Entity
@Table(name="t_assets")
@DynamicInsert
@DynamicUpdate
public class Assets extends BaseEntity implements Serializable {

    /**
    * The constant serialVersionUID.
    */
    private static final long serialVersionUID = -1L;

    @Column(name = "total_money")
    @ApiModelProperty(value = "总金额")
    private Long totalMoney;

    @Column(name = "total_expenditure")
    @ApiModelProperty(value = "总支出")
    private Long totalExpenditure;

    @Column(name = "total_income")
    @ApiModelProperty(value = "总收入")
    private Long totalIncome;

    @Column(name = "user_id")
    @ApiModelProperty(value = "用户id")
    private Long userId;

    public Long getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(Long totalMoney) {
        this.totalMoney = totalMoney;
    }

    public Long getTotalExpenditure() {
        return totalExpenditure;
    }

    public void setTotalExpenditure(Long totalExpenditure) {
        this.totalExpenditure = totalExpenditure;
    }

    public Long getTotalIncome() {
        return totalIncome;
    }

    public void setTotalIncome(Long totalIncome) {
        this.totalIncome = totalIncome;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Assets(){
        super();
    }

}
